/**
 * Bob.Ren
 * 2013-7-3
 */
package com.noqueue.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

/**
 * @author Bob.Ren
 * @date 2013-7-3
 */
@Entity
public class CustomerQueue extends BaseEntity {

	private static final long serialVersionUID = -2158109459123036967L;
	private Customer customer;
	private String eateryId;
	private int amount;
	private int peoples;
	private int isInform;
	private int isDine;

	/**
	 * @return the customerId
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	public Customer getCustomer() {
		return customer;
	}

	/**
	 * @param customerId
	 *            the customerId to set
	 */
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	/**
	 * @return the eateryId
	 */
	@Column(nullable = false, name = "eatery_id")
	public String getEateryId() {
		return eateryId;
	}

	/**
	 * @param eateryId
	 *            the eateryId to set
	 */
	public void setEateryId(String eateryId) {
		this.eateryId = eateryId;
	}

	/**
	 * @return the amount
	 */
	@Column(name = "amount")
	public int getAmount() {
		return amount;
	}

	/**
	 * @param amount
	 *            the amount to set
	 */
	public void setAmount(int amount) {
		this.amount = amount;
	}

	/**
	 * @return the peoples
	 */
	public int getPeoples() {
		return peoples;
	}

	/**
	 * @param peoples
	 *            the peoples to set
	 */
	public void setPeoples(int peoples) {
		this.peoples = peoples;
	}

	/**
	 * @return the isInform
	 */
	public int getIsInform() {
		return isInform;
	}

	/**
	 * @param isInform
	 *            the isInform to set
	 */
	public void setIsInform(int isInform) {
		this.isInform = isInform;
	}

	/**
	 * @return the isDine
	 */
	public int getIsDine() {
		return isDine;
	}

	/**
	 * @param isDine
	 *            the isDine to set
	 */
	public void setIsDine(int isDine) {
		this.isDine = isDine;
	}

}
